package com.wanmait.baohan.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * TODO
 *
 * @author 打豆豆
 * @version 1.0
 * @date 2020/12/4 23:05
 * @description:
 */
public class CreatJobNumberUtil {
    public static String creatJobNumber(Integer num){
        String todayNum = null;
        if (num / 10 == 0){
            todayNum = "0" + num;
        } else {
            todayNum = num+"";
        }
        String dateNowStr = new SimpleDateFormat("yyyyMMdd").format(new Date());
        dateNowStr.substring(2);
        return dateNowStr.substring(2)+todayNum;
    }
}
